package com.mm.service;

import com.mm.exception.ServiceException;
import com.mm.model.Company;

/**
 * 店铺service
 *
 * @date 2018/7/18 19:34
 */
public interface CompanyService {

	/**
	 * 保存店铺
	 *
	 * @param jsonData String(JSON格式字符串)
	 */
	void saveCompany(String jsonData) throws ServiceException;

	/**
	 * 更新店铺
	 *
	 * @param company Company
	 */
	void updateCompany(Company company);

	/**
	 * 获取店铺
	 *
	 * @param companyId 店铺ID
	 * @return Company
	 */
	Company getOneCompanyById(Long companyId) throws ServiceException;

	/**
	 * 通过店铺ID删除店铺
	 *
	 * @param companyId 店铺ID
	 */
	void deleteCompanyById(Long companyId) throws ServiceException;

	/**
	 * 保存店铺图片关系
	 *
	 * @param companyId  店铺ID
	 * @param pictureIds 图片ID字符串
	 */
	void saveCompanyPicture(Long companyId, String pictureIds) throws ServiceException;
}
